<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateExhibitionCodeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('exhibition_code', function (Blueprint $table) {
            $table->id();
            $table->string("img_url")->comment("会议签到二维码路径")->nullable();
        });
        DB::statement("ALTER TABLE `exhibition_code` comment'会议签到二维码路径'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('exhibition_code');
    }
}
